export default function axios(options) {
    return new Promise((resolve, reject) => {
        axios({
            url: options.url,
            method: options.method || 'get',
            data: options.data || {},

        }).then(res => {
            resolve(res)
        }).catcj(err => {
            reject(err)
        })
    })

}